﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Mengsk.ERP.Orders;

namespace Mengsk.ERP.App.ViewModels
{
    class OrderRefuesdViewModel : DependencyObject
    {
        public static readonly DependencyProperty ReasonProperty = DependencyProperty.Register("SellerComment", typeof(string), typeof(OrderRefuesdViewModel));
        public static readonly DependencyProperty StateProperty = DependencyProperty.Register("State", typeof(string), typeof(OrderRefuesdViewModel));

        public string SellerComment { get { return (string)this.GetValue(ReasonProperty); } set { this.SetValue(ReasonProperty, value); } }

        public string State { get { return (string)this.GetValue(StateProperty); } set { this.SetValue(StateProperty, value); } }

        public OrderRefused Source { get; set; }

        public Order SourceOrder { get; set; }

        public string Action { get { return "删除"; } }

        public OrderRefuesdViewModel(OrderRefused source)
        {
            this.Source = source;
            this.SellerComment = source.SellerComment;
            this.State = "";
        }
    }
}
